package cn.dcw.pethome.basic.mapper;



import cn.dcw.pethome.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    //增加
    void add(T t);

    //删除
    void delete(Long id);

    //批量删除
    void batchDel(Long[] ids);

    //修改
    void update(T t);

    //查询单条数据
    T findOne(Long id);

    //查询所有
    List<T> findAll();

    //查询总条数
    Long totals(BaseQuery query);

    //分页查询
    List<T> pageQuery(BaseQuery query);
}
